package geral.converter;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;

@FacesConverter(value="diaConverter" )
public class diaConverter implements Converter {

    @Override
    public Object getAsObject(FacesContext arg0, UIComponent arg1, String texto) {
        return new Integer(texto);
    }

    @Override
    public String getAsString(FacesContext arg0, UIComponent arg1, Object texto) {
        return texto.toString();
    }
}
